package com.ynr.common.utils;

import java.io.Serializable;

public class CommonResult implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String info;
	
	private String code;
	
	private Object data;
	
	private boolean success;
	
	public CommonResult() {
		super();
	}

	public CommonResult(String info, String code, boolean success) {
		super();
		this.info = info;
		this.code = code;
		this.success = success;
	}

	public CommonResult(String info, String code, Object data, boolean success) {
		super();
		this.info = info;
		this.code = code;
		this.data = data;
		this.success = success;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

}
